//
//  YConfig.swift
//  NewNGPlay
//
//  Created by YMac on 2017/12/12.
//  Copyright © 2017年 zchd. All rights reserved.
//

import UIKit

open class YConfig:NSObject{
    public static var DEBUG = false
    
    //设备
    public static var device = "ios"
    
    //日志
    public static var YLOGTAG = "YFreeLog"
    
    //异常接管
    public static var yCrashHandlerAble = !DEBUG
    
    //视觉配置
    @objc public static var themeColor = UIColor.darkGray
    public static var navigationBarTintColor = themeColor
    public static var navigationBarBackgroundImage:String?
    public static var navigationTintColor = UIColor.white
    public static var tabBarTintColor = UIColor.white
    public static var tabTintColor = themeColor
    @objc public static var toastColor = themeColor
    public static var progressColor = themeColor
    @objc public static var mjColor = themeColor
    
    //服务器配置
    @objc public static var IP = ""
    @objc public static var UPDATEIP = ""
    public static var timeOut = DEBUG ? 5 : 10
    public static var compressParamsAble = false
    public static var encryptParamsAble = false
    public static var encryptParamsKey = "0000000000000000"
    public static var checkUpdateInterface = ""
    public static var commitErrorLog:String?
    public static var onHTTPHeader:((inout URLRequest) -> ())?
    
    //图片资源
    public static var isSetPicDefault = true
    public static var loadingImage:String?
    public static var loadingFailImage:String?
    public static var imageMaxSize:CGFloat = 720
    @objc public static var logo_icon_progress:String?
    
    //数据库
    public static var dbName = "YDataBase.db3"
    public static var dbVersion = 1
    open class YDBTableSQL {
        public static var tableNames:[String]?
        public static var createTableSqls:[String]?
    }
    
    public static var preYWebView = false
    public static var yWebViewTag = 2525
    static var yWebView:YWebView?
    
    private override init() {
    }
}
